package com.didispace.service;

import com.alibaba.dubbo.common.serialize.support.SerializationOptimizer;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

/**
 * Created by ervin on 2017/8/7.
 */
public class SerializationOptimizerImpl implements SerializationOptimizer {

    public Collection<Class> getSerializableClasses() {
        List<Class> classes = new LinkedList<Class>();
        classes.add(HttpServletRequest.class);
        classes.add(HttpServletResponse.class);
        return classes;
    }
}